package com.community.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("policy_application")
public class PolicyApplication {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long residentId;
    
    private String type;  // 申请类型：失独、困难补助、电梯申请等
    
    private String reason;
    
    private String materials;  // 申请材料，JSON格式存储
    
    private String status;  // 申请状态：申请中/已通过/已驳回
    
    private String approvalComment;  // 审批意见
    
    private Long approverId;  // 审批人ID
    
    private LocalDateTime approvalTime;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
} 